package com.gaofans.nrpc.common.compress;

import static com.gaofans.nrpc.common.compress.CodecFactory.IDENTITY;

/**
 * @author GaoFans
 */
public class Identity implements Codec {

    @Override
    public byte[] decompress(byte[] in) {
        return in;
    }

    @Override
    public byte getMessageEncoding() {
        return IDENTITY;
    }

    @Override
    public byte[] compress(byte[] os) {
        return os;
    }

}
